<template>
  <div>
    User
  </div>
</template>

<script>
import api from 'api/wechat';
export default {
  name: 'Oauth',
  data () {
    return {
    }
  },
  mounted () {
    const url = window.location.href;
    api.getWechatUserInfo(url).then((res) => {
      if (res && res.data) {
        console.log('----------user---------------');
        console.log(res.data);
      }
    });
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
